package com.qf.shopping.controll;

import com.qf.shopping.dto.OperateLogDTO.OperateLogDTO;
import com.qf.shopping.pojo.message.OperateLog;
import com.qf.shopping.service.IOperateLogService;
import com.qf.shopping.vo.carVO.LogVO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

@Controller
@RequestMapping("/log")
public class OpLogControll {

    @Autowired
    private IOperateLogService iOperateLogService=null;
    @GetMapping("/logs")
    public String tologs(Model model){
        List<OperateLogDTO> list =iOperateLogService.findAllOperateLog();
        model.addAttribute("logs",list);
        return "/logs/list";
    }
}
